import api from '../../api';
import { message } from 'antd';

export default {
  namespace: 'menuCountM',
  state: {},
  effects: {
    // 获取基准列表
    *getMenuCoumt({ payload }, { call, put, select }) {
      const res = yield call(api.getMenuClickNum, payload);
      // if(res&&res.code == 0){

      //  }else{
      //    message.error(res?res.msg:'保存失败')
      //  }
    },
  },

  reducers: {
    setState(state, { payload }) {
      return {
        ...state,
        ...payload,
      };
    },
  },
};
